<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->get('/', function () use ($router) {

    return $router->app->version();
});

$router->group([
    'prefix' => 'frontend',
    'namespace' => 'Frontend'
],function() use( $router ){
    $router->get('/brand', 'BrandController@index');
    $router->get('/brand/{brand}/series', 'SeriesController@index');
    $router->get('/factory/{factory}/series/{series}/displacement', 'SeriesController@displacement');
    $router->get('/factory/{factory}/series/{series}/displacement/{displacement}/modelObject', 'ModelObjectController@index');
    $router->get('/modelObject/{tid}', 'ModelObjectController@info');
    $router->get('/modelObject/{tid}/getCoptonTransmissionOil', 'ModelObjectController@oil_transmission');
    $router->get('/modelObject/{tid}/getCoptonGT', 'ModelObjectController@oil_gt');
    $router->get('/modelObject/{tid}/getCoptonNano', 'ModelObjectController@oil_nano');
    $router->get('/vin/{vin}', 'VinController@info');
});
